<?php
include_once("config/config.inc.php");
include_once("dailyreport.function.php");

$retval=chr(hexdec('1B')).chr(hexdec('4D')).chr(1);	
$retval.= getReport(0,1)."\n\n\n\n\n";	
$retval.=chr(hexdec('1D')).chr(hexdec('56')).chr(49);
$file = "testend.txt";

echo "<pre>$retval</pre>";
/*$fp = fopen("reports/" .$file, "w");
fwrite( $fp,$retval);
fclose($fp);
shell_exec('c:\pstools\psexec c:\xampp\htdocs\fds\ajax\p.bat ' . $file);

*/

?>